package com.drg.center.entity.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 系统资源模板表
 * </p>
 *
 * @author system
 * @since 2021-11-17
 */
@Data
@ApiModel("资源信息实体类")
public class SysResVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("资源名称")
    private String name;

    @ApiModelProperty("资源标识(菜单为文件路径,按钮为权限码))")
    private String code;

    @ApiModelProperty("图标地址")
    private String icon;

    @ApiModelProperty("父节点ID")
    private Long pid;

    @ApiModelProperty("资源类型（0：菜单，1：按钮）")
    private Integer resType;

    @ApiModelProperty("所属系统编号")
    private String sysCode;

    @ApiModelProperty("路由")
    private String router;

    @ApiModelProperty(value = "子节点" )
    private List<SysResVO> children = new ArrayList<>();

}
